/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.qp.smsmarketing.view.mbean.abstractmbean;

import java.awt.Frame;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JTable;

/**
 *
 * @author waldenilson
 */
public abstract class AbstractMBean implements IMBean
{
    protected void carregarView(JDialog jf,JDialog jf2)
    {
         if(jf == null)
            jf = jf2;
         jf.setVisible(true);

    }
    
    protected JTable ocultarColuna(JTable jt, int coluna)
    {
        jt.getColumnModel().getColumn( coluna ).setMaxWidth( 0 );
        jt.getColumnModel().getColumn( coluna ).setMinWidth( 0 );
        jt.getTableHeader().getColumnModel().getColumn( coluna ).setMaxWidth( 0 );
        jt.getTableHeader().getColumnModel().getColumn( coluna ).setMinWidth( 0 );

        return jt;
    }
}
